import request from "@/utils/request";

const AUTO_REPLY_URL = "/auto/reply";

/**
 * 获取所有自动回复信息
 *
 * @param queryParams 查询参数
 */
export function getPage(queryParams) {
  return request({
    url: `${AUTO_REPLY_URL}/page`,
    method: "get",
    params: queryParams,
  });
}

export function deleteById(id) {
  return request({
    url: `${AUTO_REPLY_URL}/`+id,
    method: "delete",
  });
}

export function postAutoReply(data) {
  return request({
    url: `${AUTO_REPLY_URL}`,
    method: "post",
    data: data,
  });
}
